#pragma once
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>

// Format current time string
std::string now_time_string();

// Encode image to JPEG buffer
std::vector<uint8_t> encode_jpeg(const cv::Mat& img, int quality = 80);
